home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4788 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 72 61 69 6e 2e |Path: ne|ws.rain.|
|00000010| 6f 72 67 21 75 73 65 6e | 65 74 0a 46 72 6f 6d 3a |org!usen|et.From:|
|00000020| 20 22 47 75 75 73 20 4c | 65 65 75 77 20 6a 72 2e | "Guus L|eeuw jr.|
|00000030| 22 20 3c 67 75 75 73 6c | 40 65 69 66 66 65 6c 2e |" <guusl|@eiffel.|
|00000040| 63 6f 6d 3e 0a 4e 65 77 | 73 67 72 6f 75 70 73 3a |com>.New|sgroups:|
|00000050| 20 63 6f 6d 70 2e 6f 73 | 2e 6d 73 64 6f 73 2e 70 | comp.os|.msdos.p|
|00000060| 72 6f 67 72 61 6d 6d 65 | 72 2c 63 6f 6d 70 2e 6c |rogramme|r,comp.l|
|00000070| 61 6e 67 2e 63 0a 53 75 | 62 6a 65 63 74 3a 20 52 |ang.c.Su|bject: R|
|00000080| 65 3a 20 6f 70 65 6e 20 | 76 73 20 66 6f 70 65 6e |e: open |vs fopen|
|00000090| 3f 0a 44 61 74 65 3a 20 | 37 20 46 65 62 20 31 39 |?.Date: |7 Feb 19|
|000000a0| 39 36 20 30 30 3a 35 31 | 3a 34 31 20 47 4d 54 0a |96 00:51|:41 GMT.|
|000000b0| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 49 6e |Organiza|tion: In|
|000000c0| 74 65 72 61 63 74 69 76 | 65 20 53 6f 66 74 77 61 |teractiv|e Softwa|
|000000d0| 72 65 20 45 6e 67 69 6e | 65 65 72 69 6e 67 20 49 |re Engin|eering I|
|000000e0| 6e 63 2e 20 68 74 74 70 | 3a 2f 2f 77 77 77 2e 65 |nc. http|://www.e|
|000000f0| 69 66 66 65 6c 2e 63 6f | 6d 2f 0a 4d 65 73 73 61 |iffel.co|m/.Messa|
|00000100| 67 65 2d 49 44 3a 20 3c | 34 66 38 74 32 74 24 37 |ge-ID: <|4f8t2t$7|
|00000110| 6a 6f 40 6e 65 77 73 2e | 72 61 69 6e 2e 6f 72 67 |jo@news.|rain.org|
|00000120| 3e 0a 52 65 66 65 72 65 | 6e 63 65 73 3a 20 3c 75 |>.Refere|nces: <u|
|00000130| 45 59 46 78 63 39 6e 58 | 38 57 58 30 38 33 79 6e |EYFxc9nX|8WX083yn|
|00000140| 40 6d 62 6e 65 74 2e 6d | 62 2e 63 61 3e 20 3c 34 |@mbnet.m|b.ca> <4|
|00000150| 66 38 71 62 67 24 35 34 | 39 40 63 68 6c 65 75 61 |f8qbg$54|9@chleua|
|00000160| 73 6d 65 2e 66 72 61 6e | 63 65 6e 65 74 2e 66 72 |sme.fran|cenet.fr|
|00000170| 3e 0a 4e 4e 54 50 2d 50 | 6f 73 74 69 6e 67 2d 48 |>.NNTP-P|osting-H|
|00000180| 6f 73 74 3a 20 40 6f 75 | 74 62 61 63 6b 2e 65 69 |ost: @ou|tback.ei|
|00000190| 66 66 65 6c 2e 63 6f 6d | 0a 4d 69 6d 65 2d 56 65 |ffel.com|.Mime-Ve|
|000001a0| 72 73 69 6f 6e 3a 20 31 | 2e 30 0a 43 6f 6e 74 65 |rsion: 1|.0.Conte|
|000001b0| 6e 74 2d 54 79 70 65 3a | 20 74 65 78 74 2f 70 6c |nt-Type:| text/pl|
|000001c0| 61 69 6e 3b 20 63 68 61 | 72 73 65 74 3d 75 73 2d |ain; cha|rset=us-|
|000001d0| 61 73 63 69 69 0a 43 6f | 6e 74 65 6e 74 2d 54 72 |ascii.Co|ntent-Tr|
|000001e0| 61 6e 73 66 65 72 2d 45 | 6e 63 6f 64 69 6e 67 3a |ansfer-E|ncoding:|
|000001f0| 20 37 62 69 74 0a 58 2d | 4d 61 69 6c 65 72 3a 20 | 7bit.X-|Mailer: |
|00000200| 4d 6f 7a 69 6c 6c 61 20 | 31 2e 31 32 20 28 58 31 |Mozilla |1.12 (X1|
|00000210| 31 3b 20 49 3b 20 4c 69 | 6e 75 78 20 31 2e 32 2e |1; I; Li|nux 1.2.|
|00000220| 38 20 69 35 38 36 29 0a | 54 6f 3a 20 67 75 75 73 |8 i586).|To: guus|
|00000230| 6c 40 65 69 66 66 65 6c | 2e 63 6f 6d 0a 58 2d 55 |l@eiffel|.com.X-U|
|00000240| 52 4c 3a 20 6e 65 77 73 | 3a 34 66 38 71 62 67 24 |RL: news|:4f8qbg$|
|00000250| 35 34 39 40 63 68 6c 65 | 75 61 73 6d 65 2e 66 72 |549@chle|uasme.fr|
|00000260| 61 6e 63 65 6e 65 74 2e | 66 72 0a 0a 73 68 65 72 |ancenet.|fr..sher|
|00000270| 6c 6f 63 6b 40 6d 69 63 | 72 6f 6e 65 74 2e 66 72 |lock@mic|ronet.fr|
|00000280| 20 77 72 6f 74 65 3a 0a | 3e 6e 61 74 65 77 69 6c | wrote:.|>natewil|
|00000290| 64 40 6d 62 6e 65 74 2e | 6d 62 2e 63 61 20 28 4e |d@mbnet.|mb.ca (N|
|000002a0| 61 74 68 61 6e 20 54 2e | 20 57 69 6c 64 29 20 77 |athan T.| Wild) w|
|000002b0| 72 6f 74 65 3a 0a 3e 0a | 3e 3e 49 6e 20 43 2c 20 |rote:.>.|>>In C, |
|000002c0| 77 68 79 20 77 6f 75 6c | 64 20 6f 6e 65 20 75 73 |why woul|d one us|
|000002d0| 65 20 6f 70 65 6e 20 61 | 6e 64 20 44 4f 53 20 69 |e open a|nd DOS i|
|000002e0| 6e 74 20 68 61 6e 64 6c | 65 73 20 72 61 74 68 65 |nt handl|es rathe|
|000002f0| 72 20 74 68 61 6e 20 66 | 6f 70 65 6e 20 61 6e 64 |r than f|open and|
|00000300| 0a 3e 3e 73 74 64 69 6f | 20 66 69 6c 65 20 68 61 |.>>stdio| file ha|
|00000310| 6e 64 6c 65 73 3f 0a 3e | 0a 3e 3e 49 73 20 74 68 |ndles?.>|.>>Is th|
|00000320| 65 72 65 20 73 6f 6d 65 | 20 73 70 65 65 64 20 61 |ere some| speed a|
|00000330| 64 76 61 6e 74 61 67 65 | 20 6f 72 20 64 69 66 66 |dvantage| or diff|
|00000340| 65 72 6e 65 74 20 66 75 | 6e 63 74 69 6f 6e 61 6c |ernet fu|nctional|
|00000350| 69 74 79 3f 0a 3e 0a 3e | 3e 20 20 20 20 20 0a 3e |ity?.>.>|> .>|
|00000360| 0a 3e 0a 3e 62 65 63 61 | 75 73 65 20 66 69 6c 65 |.>.>beca|use file|
|00000370| 73 20 6f 70 65 6e 65 64 | 20 75 73 69 6e 67 20 6f |s opened| using o|
|00000380| 70 65 6e 20 61 6e 64 20 | 44 4f 53 20 66 69 6c 65 |pen and |DOS file|
|00000390| 73 20 68 61 6e 64 6c 65 | 73 20 63 61 6e 20 62 65 |s handle|s can be|
|000003a0| 20 72 65 61 64 20 61 6e | 64 0a 3e 77 72 69 74 65 | read an|d.>write|
|000003b0| 20 61 74 20 74 68 65 20 | 73 61 6d 65 20 74 69 6d | at the |same tim|
|000003c0| 65 2c 20 77 68 69 6c 65 | 20 73 74 64 69 6f 20 66 |e, while| stdio f|
|000003d0| 69 6c 65 73 20 63 61 6e | 27 74 2e 0a 48 65 79 2c |iles can|'t..Hey,|
|000003e0| 20 49 20 64 69 64 6e 27 | 74 20 6b 6e 6f 77 20 74 | I didn'|t know t|
|000003f0| 68 61 74 2e 2e 2e 0a 0a | 41 4e 53 49 20 43 20 73 |hat.....|ANSI C s|
|00000400| 61 79 73 3a 20 0a 41 4e | 53 49 20 43 20 72 65 71 |ays: .AN|SI C req|
|00000410| 75 69 72 65 73 20 74 68 | 61 74 20 61 20 66 69 6c |uires th|at a fil|
|00000420| 65 20 70 6f 73 69 74 69 | 6f 6e 69 6e 67 20 66 75 |e positi|oning fu|
|00000430| 6e 63 74 69 6f 6e 20 69 | 6e 74 65 72 76 65 6e 65 |nction i|ntervene|
|00000440| 20 62 65 74 77 65 65 6e | 20 6f 75 74 70 75 74 20 | between| output |
|00000450| 61 6e 64 0a 69 6e 70 75 | 74 2c 20 75 6e 6c 65 73 |and.inpu|t, unles|
|00000460| 73 20 61 6e 20 69 6e 70 | 75 74 20 6f 70 65 72 61 |s an inp|ut opera|
|00000470| 74 69 6f 6e 20 65 6e 63 | 6f 75 6e 74 65 72 73 20 |tion enc|ounters |
|00000480| 65 6e 64 2d 6f 66 2d 66 | 69 6c 65 2e 0a 0a 53 6f |end-of-f|ile...So|
|00000490| 20 61 63 63 6f 72 64 69 | 6e 67 20 74 6f 20 74 68 | accordi|ng to th|
|000004a0| 69 73 2c 20 6f 6e 65 20 | 63 61 6e 20 61 63 74 75 |is, one |can actu|
|000004b0| 61 6c 79 20 72 65 61 64 | 20 61 6e 64 20 77 72 69 |aly read| and wri|
|000004c0| 74 65 20 66 72 6f 6d 20 | 6f 6e 65 20 66 69 6c 65 |te from |one file|
|000004d0| 20 77 69 74 68 20 74 68 | 65 0a 73 61 6d 65 0a 46 | with th|e.same.F|
|000004e0| 49 4c 45 2a 2e 20 59 6f | 75 20 6f 70 65 6e 20 74 |ILE*. Yo|u open t|
|000004f0| 68 65 20 6f 70 65 6e 20 | 6c 69 6b 65 20 60 66 6f |he open |like `fo|
|00000500| 70 65 6e 28 22 46 69 6c | 65 6e 61 6d 65 22 2c 20 |pen("Fil|ename", |
|00000510| 22 72 2b 22 29 27 2e 0a | 0a 3e 0a 3e 73 75 70 70 |"r+")'..|.>.>supp|
|00000520| 6f 73 65 20 79 6f 75 20 | 68 61 76 65 20 61 20 64 |ose you |have a d|
|00000530| 61 74 61 62 61 73 65 20 | 66 69 6c 65 2c 20 77 69 |atabase |file, wi|
|00000540| 74 68 20 66 69 78 65 64 | 20 6c 65 6e 67 74 68 20 |th fixed| length |
|00000550| 66 69 65 6c 64 73 2e 0a | 3e 6c 6f 77 20 6c 65 76 |fields..|>low lev|
|00000560| 65 6c 20 66 75 6e 63 74 | 69 6f 6e 73 28 6f 70 65 |el funct|ions(ope|
|00000570| 6e 2e 2e 2e 29 20 65 6e | 61 62 6c 65 20 74 68 65 |n...) en|able the|
|00000580| 20 77 72 69 74 69 6e 67 | 20 6f 66 20 73 6f 6d 65 | writing| of some|
|00000590| 20 72 65 63 6f 72 64 73 | 20 61 6e 64 0a 3e 74 68 | records| and.>th|
|000005a0| 65 20 72 65 61 64 69 6e | 67 20 6f 66 20 6f 74 68 |e readin|g of oth|
|000005b0| 65 72 20 77 69 74 68 6f | 75 74 20 63 6c 6f 73 69 |er witho|ut closi|
|000005c0| 6e 67 20 74 68 65 20 66 | 69 6c 65 2e 0a 0a 41 73 |ng the f|ile...As|
|000005d0| 20 73 74 61 74 65 64 20 | 61 62 6f 76 65 2c 20 68 | stated |above, h|
|000005e0| 69 67 68 20 6c 65 76 65 | 6c 20 66 75 6e 63 74 69 |igh leve|l functi|
|000005f0| 6f 6e 73 20 28 73 74 64 | 69 6f 20 66 75 6e 63 74 |ons (std|io funct|
|00000600| 69 6f 6e 73 29 20 74 6f | 20 69 74 20 74 6f 6f 2e |ions) to| it too.|
|00000610| 0a 0a 3e 0a 3e 0a 0a 52 | 65 67 61 72 64 73 2c 0a |..>.>..R|egards,.|
|00000620| 09 47 75 75 73 20 4c 65 | 65 75 77 20 6a 72 0a 0a |.Guus Le|euw jr..|
+--------+-------------------------+-------------------------+--------+--------+